/**
 * Abstract base controller. Contains a before interceptor to handle authentication
 *
 * @author Vlad Mihnea
 */
abstract class BaseController {
//	def beforeInterceptor = this.&auth
//	
//	def ALLOWED = ['login','signup','register']
//	
//	def auth() {
//		if (!session.account) {
//			if (!ALLOWED.contains(actionName)) {
//				def originalRequestParams = [controller: controllerName, action: actionName]
//				originalRequestParams.putAll(params)
//				session.originalRequestParams = originalRequestParams
//				redirect(controller: 'login', action: 'login')
//				return false
//			}
//		}
//	}
}          



